from django.contrib import admin
from wanbooks.sharing.models import Item, Lease

class LeaseInline(admin.TabularInline):
    model = Lease

class ItemAdmin(admin.ModelAdmin):
    inlines = [
        LeaseInline,
    ]

admin.site.register(Item, ItemAdmin)
admin.site.register(Lease)
